//package com.xqc.provider.seata;
//
//import org.I0Itec.zkclient.exception.ZkMarshallingError;
//import org.I0Itec.zkclient.serialize.ZkSerializer;
//
//import java.nio.charset.Charset;
//
//public class XqcZkSerializer implements ZkSerializer{
//
//    @Override
//    public byte[] serialize(Object object) throws ZkMarshallingError {
//        return ((String)object).getBytes(Charset.forName("UTF-8"));
//    }
//
//    @Override
//    public Object deserialize(byte[] bytes) throws ZkMarshallingError {
//        return new String(bytes, Charset.forName("UTF-8"));
//    }
//}
